<template>
  <div>
    <Sdog v-for="(obj, index) in arr"
    :key="index"
    :imgurl="obj.dogImgUrl"
    :dogname="obj.dogName"
    ></Sdog>
  </div>
</template>

<script>
import Sdog from '@/components/Sdog.vue'
export default {
  data() {
    return {
      // 1. 准备数据
      arr: [
        {
          dogImgUrl:
            "http://nwzimg.wezhan.cn/contents/sitefiles2029/10146688/images/21129958.jpg",
          dogName: "博美",
        },
        {
          dogImgUrl:
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2Ff%2F55ee9bb933228.jpg%3Fdown&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666453739&t=4b512ec1acf358e8a23fbba2f29fabe4",
          dogName: "泰迪",
        },
        {
          dogImgUrl:
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg9.51tietu.net%2Fpic%2F2019-090902%2Ff4faz1kcw4mf4faz1kcw4m.jpg&refer=http%3A%2F%2Fimg9.51tietu.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666453739&t=a01a1af24e0172a74c734706eef5a3f9",
          dogName: "金毛",
        },
        {
          dogImgUrl:
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg2.niutuku.com%2Fdesk%2F1208%2F0704%2Fbizhi-0704-8910.jpg&refer=http%3A%2F%2Fimg2.niutuku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666453739&t=005d81726ceebc8a286f99709617eff7",
          dogName: "哈士奇",
        },
        {
          dogImgUrl:
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpicture.ik123.com%2Fuploads%2Fallimg%2F161028%2F12-16102Q61934.jpg&refer=http%3A%2F%2Fpicture.ik123.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666453739&t=bd81713731b0a5dcb240b25449651b67",
          dogName: "阿拉斯加",
        },
        {
          dogImgUrl:
            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs2.168muyu.com%2Fupload%2Fgallery%2F1001%2Fc92d5ace7d36c6ef.jpg&refer=http%3A%2F%2Fs2.168muyu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666453739&t=573778f05479f8ec21920e097e247b85",
          dogName: "萨摩耶",
        },
      ],
    };
  },
  components: {
    Sdog
  }
};
</script>